package com.fhz.core_lib.widget;

import android.app.Dialog;
import android.content.Context;
import android.view.WindowManager;

import androidx.annotation.NonNull;

/**
 * 时间:11/14/21
 *
 * @author msfeng
 * 简述: 各种弹出的对话框
 */
public class DialogView extends Dialog {

    public DialogView(@NonNull Context context, int layoutId, int style, int gravity) {
        super(context,style);
        setContentView(layoutId);
        WindowManager.LayoutParams attributes = getWindow().getAttributes();
        attributes.width = WindowManager.LayoutParams.MATCH_PARENT;
        attributes.height = WindowManager.LayoutParams.WRAP_CONTENT;
        attributes.gravity = gravity;
        getWindow().setAttributes(attributes);

    }




}
